<!DOCTYPE html>
<html>
<head lang="en">
	<meta charset="UTF-8">
	<title>百朋后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/demo.css">
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
</head>
<style type="text/css">
	.input 
	{
		border: 1px solid #eaeaea;
		background-color: #6d654e;
		color: #fff;
		text-align: center;
		padding: 0px 10px -1px;
		border-radius: 4px;
	}
</style>
<body>
	<div class="invest_table">
		<table id="default_table" title="订单列表" style="width:100%;min-height:372px;"
			data-options="
				remoteSort:false,
				rownumbers:true,
				singleSelect:true,
				autoRowHeight:false,
				pagination:true,
				pageSize:10,toolbar:'#tb'
			"
		>
			<thead>
				<tr>
					<th field="trade_contractnumber" width="12%" align="center">服务合同编号</th>
					<th field="cust_name" width="8%" align="center">客户姓名</th>
					<th field="fac_name" width="20%" align="center">商户名称</th>
					<th field="trade_allmoney" width="10%" align="center">金额</th>
					<th field="trade_name" width="10%" align="center">交易状态</th>
					<th field="name" width="10%" align="center">支付状态</th>
					<th field="tradeAddtime" width="16%" align="center" sortable="true">创建时间</th>
					<!--<th field="action" width="13%" align="center" formatter="formatAction">操作</th>-->
				</tr>
			</thead>
		</table>
	</div>
	<div id="tb" style="padding:5px;height:auto">
		<form action="../../order/order/order_list" method="post" id="searchTable">
            <div style="margin-bottom:5px" id="tb_button">
                <!--<a href="javascript:;" onclick="order_add();" class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a>
                <a href="javascript:;" onclick="uploadfile();" class="easyui-linkbutton" iconCls="icon-large-smartart" plain="true">上传合同</a>
                <a href="javascript:;" onclick="trade_detail();" class="easyui-linkbutton" iconCls="icon-man" plain="true">详情</a>-->
            </div>
			<div>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商户名称: 
				<input class="easyui-textbox" id="select_businessName" name="select_businessName" value="{$search_array.select_businessName}" style="width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
				客户姓名: 
				<input class="easyui-textbox" id="select_custName" name="select_custName" value="{$search_array.select_custName}" style="width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
				交易编码: 
				<input class="easyui-textbox" id="select_tradeCode" name="select_tradeCode" value="{$search_array.select_tradeCode}" style="width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创建时间: 
				<input class="easyui-datebox" id="select_time" data-options="formatter:myformatter,parser:myparser,editable:false" name="select_time" value="{$search_array.select_time}" style="width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
				支付状态: 
				<select class="easyui-combobox selector" id="select_payState" name="select_payState" panelHeight="auto" style="width:120px" data-options="editable:false">
					<option value="">请选择</option>
					<?php
						foreach ($array_payState as $key => $value) 
						{
							echo '<option value="'.$value['id'].'">'.$value['name'].'</option>';
						}
					?>
				</select>&nbsp;&nbsp;&nbsp;&nbsp;
				<script type="text/javascript">$("#select_payState").find("option[value='{$search_array.select_payState}']").attr("selected",true);</script>
				交易状态: 
				<select class="easyui-combobox selector" id="select_tradeState" name="select_tradeState" panelHeight="auto" style="width:120px" data-options="editable:false">
					<option value="">请选择</option>
					<?php
						foreach ($array_factradeState as $key => $value) 
						{
							echo '<option value="'.$value['trade_id'].'">'.$value['trade_name'].'</option>';
						}
					?>
				</select>&nbsp;&nbsp;&nbsp;&nbsp;
				<script type="text/javascript">$("#select_tradeState").find("option[value='{$search_array.select_tradeState}']").attr("selected",true);</script>
				<a href="javascript:;" onclick="submitSearch();" class="easyui-linkbutton" iconCls="icon-search">查询</a>&nbsp;&nbsp;
				<a href="javascript:;" onclick="resetSearch();" class="easyui-linkbutton" iconCls="icon-clear">重置</a>&nbsp;&nbsp;
				
			</div>
		</form>

		<form action="../../order/order/order_fileUpload" id="fileForm" enctype="multipart/form-data" method="post">
			<input type="file" style="display: none" name="fileupload" id="uploadfile" onchange="changupload();">
			<input type="hidden" id="trade_id" name="trade_id">
		</form>
	</div>

	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/button.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/order/order_list.js"></script>
	<script type="text/javascript">
		$(function() 
		{
			var json = '{$json_list}';
			var array = JSON.parse(json);
			$('#default_table').datagrid({loadFilter:pagerFilter}).datagrid('loadData', array);
		});
	</script>
</body>
</html>